import { Component, OnInit } from '@angular/core';
import { NzTransferModule, TransferItem } from 'ng-zorro-antd/transfer';

@Component({
  selector: 'app-transfer-basic-demo',
  standalone: true,
  imports: [NzTransferModule],
  templateUrl: './transfer-basic-demo.component.html',
  styleUrl: './transfer-basic-demo.component.less',
})
export class TransferBasicDemoComponent implements OnInit {
  list: TransferItem[] = [];

  ngOnInit(): void {
    this.list = new Array(20).fill(1).map((_, i) => ({
      key: i.toString(),
      title: `content${i + 1}`,
      disabled: i % 3 < 1,
    }));
    [2, 3].forEach((i) => (this.list[i].direction = 'right'));
  }
}
